﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace Data
{
    public class SpeciallySql
    {
        private DataAccess Da = new DataAccess();
        public int run_SpeciallySql(string SQL)
        {
            try
            {
                if (!string.IsNullOrEmpty(SQL))
                {
                    return Da.Delete(SQL, null);
                }
                return 0;
            }
            catch { }
            return 0;
        }
        public DataTable getDT_SpeciallySql(string SQL)
        {
            try
            {
                if (!string.IsNullOrEmpty(SQL))
                {
                    DataTable dt = new DataAccess().GetDataTable<Data.TInsert_Max>(SQL);
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        return dt;
                    }
                    return null;
                }
                return null;
            }
            catch { }
            return null;
        }        
    }
}
